﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Data.SqlClient;

namespace SmartLibraries.DataAccessLayer
{
	public class ClsDatabaseException:Exception
	{
		public int ErrorNumber
		{
			get;
			set;
		}
		public int ErrorSeverity
		{
			get;
			set;
		}
		public int ErrorState
		{
			get;
			set;
		}
		public string ErrorProcedure
		{
			get;
			set;
		}
		public int ErrorLine
		{
			get;
			set;
		}
		public string ErrorMessage
		{
			get;
			set;
		}
		public ClsDatabaseException(int ErrorNumber, int ErrorSeverity,
		int ErrorState, string ErrorProcedure, int ErrorLine, string ErrorMessage):base(ErrorMessage)
		{
		
			this.ErrorLine = ErrorLine;
			this.ErrorMessage = ErrorMessage;
			this.ErrorNumber = ErrorNumber;
			this.ErrorProcedure = ErrorProcedure;
			this.ErrorState = ErrorState;
			this.ErrorSeverity = ErrorSeverity;
		}

		[DebuggerHidden()]
		public override System.Collections.IDictionary Data
		{
			get
			{
				return base.Data;
			}
		}
		public override string HelpLink
		{
			get
			{
				return "www.sukeshmarla.blogspot.com";
			}
			set
			{
				base.HelpLink = value;
			}
		}
		[DebuggerHidden()]
		public override string Message
		{
			get
			{
				return base.Message;
			}
		}

		[DebuggerHidden()]
		public override string Source
		{
			get
			{
				return base.Source;
			}
			set
			{
				base.Source = value;
			}
		}


		[DebuggerHidden()]
		public override string StackTrace
		{
			get
			{
				return base.StackTrace;
			}
		}

		

		
	}
}
